package com.liumuxian.base.pojo;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

//积分属性表
@Entity
@Data
@Table(name = "tb_integraltype")
public class IntegralType implements Serializable{
    @Id
    @Column(name = "id",length = 20)
    private String id;  // 积分类型id
    @Column(name = "name",length = 100)
    private String name;  // 积分类型名
    @Column(name = "explains")
    private String explain; //积分类型描述
    @Column(name = "grade",length = 20)
    private long grade; // 每次获取积分数
    @Column(name = "counts")
    private Integer count; // 每天限制次数（超过就不能再获取积分）
    @Column(name = "isdisposable")
    private Integer isdisposable;//是否一次性
    @Column(name = "state",length = 1)
    private Integer state;
    @Column(name = "creatdata")
    private Date creatdata;//创建时间
    @Column(name = "updatedate")
    private Date updatedate;//修改时间

}
